using System.Configuration;
using Be.Timvw.Framework.Configuration;

namespace Be.Timvw.Framework.Tests.Security.Principal.WindowsIdentityHelper
{
    public static class LocalAccountInfo
    {
        private static readonly string s_InvalidPassword;
        private static readonly string s_InvalidUsername;
        private static readonly string s_ValidPassword;
        private static readonly string s_ValidUsername;

        static LocalAccountInfo()
        {
            using(new ConfigurationFileSession("LocalAccountInfo.config"))
            {
                s_ValidUsername = ConfigurationManager.AppSettings["Security.Principal.WindowsIdentityHelper.ValidUsername"];
                s_ValidPassword = ConfigurationManager.AppSettings["Security.Principal.WindowsIdentityHelper.ValidPassword"];
                s_InvalidUsername = ConfigurationManager.AppSettings["Security.Principal.WindowsIdentityHelper.InvalidUsername"];
                s_InvalidPassword = ConfigurationManager.AppSettings["Security.Principal.WindowsIdentityHelper.invalidPassword"];
            }
        }

        public static string ValidUsername
        {
            get { return s_ValidUsername; }
        }

        public static string ValidPassword
        {
            get { return s_ValidPassword; }
        }

        public static string InvalidUsername
        {
            get { return s_InvalidUsername; }
        }

        public static string InvalidPassword
        {
            get { return s_InvalidPassword; }
        }
    }
}